package gg.com.toolbox.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import gg.com.toolbox.util.AppConstant;

/**
 * 每分钟时间变化广播
 * Created by gaoge on 2017/10/11.
 */

public class TimeReceiver extends BroadcastReceiver{

    @Override
    public void onReceive(Context context, Intent intent) {
        if(Intent.ACTION_TIME_TICK.equals(intent.getAction())){
            //每一分钟更新密码
            AppConstant.setData();
        }
    }
}
